package com.enjoy.rpcservice;

import ctd.annotation.RpcClass;
import ctd.annotation.RpcService;
import org.apache.log4j.Logger;

@RpcClass(serviceID = "helloService")
public class HelloService {

    private final Logger logger = Logger.getLogger(HelloService.class);

    @RpcService
    public String getMsg(String name) {

        try {
            Thread.sleep(3000);

            logger.debug("helloService.getMsg");
        } catch (InterruptedException e) {
            logger.error(e.getMessage());
        }
        return "hello," + name;
    }
}
